package com.kmxd.ams.client.archive.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.Data;

/**
 * 关联档案对应的档案列表
 *
 * @author nickbi
 * @since 2022-07-20
 */
@Data
@ColumnWidth(15)
@HeadRowHeight(15)
@ContentRowHeight(15)
@HeadStyle
@HeadFontStyle(fontHeightInPoints = 12)
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
@ContentFontStyle(fontHeightInPoints = 10)
@ExcelIgnoreUnannotated
@Schema(description = "关联档案对应的档案列表")
public class ArchiveRelationArchListVO<T> implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "原始门类配置id")
  @JsonSerialize(using = ToStringSerializer.class)
  @ExcelProperty(value = "原始门类配置id")
  private Long archTypeId;

  @Schema(description = "门类名")
  @ExcelProperty(value = "门类名")
  private String archTypeName;

  @Schema(description = "原始所属表名")
  @ExcelProperty(value = "原始所属表名")
  private String tableId;

  private List<T> list;
}
